/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package UML;

/**
 *
 * @author David
 */
public class Type {
  
  private String name;
  
  public Type(String name){
    
    if (name.isEmpty())
      throw new IllegalArgumentException("name cannot be empty");
    
    this.name = name;
  }
  
  public String getName() { return name; }
  public void setName(String name) { this.name = name; }
  
}
